#ifndef TASK_H
#define TASK_H

#include <QDate>

enum TaskType{
    FlgTaskAgricul,
    FlgTaskCommerce,
    FlgTaskInspection,
    FlgTaskTraining
};

class City;
class Knight;
class Task
{
public:
    Task();
    virtual bool Init(City *city,Knight *knight,QDate assinDate,int preDays);
    virtual bool Init(QDate &assinDate, int preDays);
    QDate getHandleDate()const;
    virtual void taskProcess()=0;
protected:
    TaskType m_taskType;
private:
    QDate m_assinDate;
    QDate m_handleDate;
};

#endif // TASK_H
